/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package patterns.factory2;

/**
 *
 * @author Zeus
 */
public class AnimalFactory {
    public Animal getAnimal(String type){
        if(type.equalsIgnoreCase("canine")){
            return new Dog();
        }
        else{
            return new Cat();
        }
    }
}
